@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg-000: 60 1.8% 22%;
  --gen-100: 50 23.1% 94.9%;
}

html,
body {
  padding: 0;
  margin: 0;
  min-height: 100%;
  min-width: 100%;
  overflow-y: hidden;
  
}

* {
  box-sizing: border-box;
  border: none;
  font-family: 'Inter', sans-serif;
}

a {
  cursor: pointer;
}


::marker {
  color: rgb(163 163 163);

}

.electron-drag {
  -webkit-app-region: drag;
}

.electron-no-drag {
  -webkit-app-region: no-drag;
}

button {
  -webkit-app-region: no-drag;
}

::-webkit-scrollbar {
  width: 7px;
  /* Adjust the width of the scrollbar */
}

::-webkit-scrollbar-track {
  background: transparent;
  /* Make the scrollbar track transparent */
}

::-webkit-scrollbar-thumb {
  background-color: rgba(95, 125, 139, 0.5);
  border-radius: 2px;
}

.icon {
  margin-right: 16px;
}

.text {
  align-self: center;
}


/* Css for table on bubble-menu */
.table-size-selector {
  background: #1E1E1E;
  border: 1px solid rgb(55 65 81);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 1050;
}

.table-size-selector .row {
  display: flex;
}

.table-size-selector .cell {
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  background-color: #323232;
  transition: background-color 0.3s;
  margin: 1px;
}

.table-size-selector .cell.hovered,
.table-size-selector .cell:hover {
  background-color: #ddd;
}


/**
 * TAKEN FROM: https://tiptap.dev/docs/editor/extensions/nodes/table
 */
/* Basic editor styles */
.tiptap :first-child {
  margin-top: 0;
}

/* Table-specific styling */
.tiptap table {
  border-collapse: collapse;
  margin: 0;
  overflow: hidden;
  table-layout: fixed;
  width: 100%;
}

.tiptap td,
.tiptap th {
  border: 1px solid #ccc;
  box-sizing: border-box;
  min-width: 1em;
  padding: 6px 8px;
  position: relative;
  vertical-align: top;
}

.tiptap td>*,
.tiptap th>* {
  margin-bottom: 0;
}

.tiptap th {
  /* background-color: rgba(61, 37, 20, .05); */
  background-color: rgba(162, 157, 153, 0.5);
  /* 50% transparent white */
  font-weight: bold;
  text-align: left;
}

.tiptap .selectedCell:after {
  /* background: rgba(61, 37, 20, .08); */
  content: "";
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.tiptap .column-resize-handle {
  background-color: var(--purple);
  bottom: -2px;
  pointer-events: none;
  position: absolute;
  right: -2px;
  top: 0;
  width: 4px;
}

.tiptap .tableWrapper {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.tiptap.resize-cursor {
  cursor: ew-resize;
  cursor: col-resize;
}

.my-day-picker .rdp {
  @apply text-xs;
  /* Adjust font size */
}

.my-day-picker .rdp-months {
  @apply p-2;
  /* Adjust padding */
}

.my-day-picker .rdp-caption {
  @apply text-sm;
  /* Adjust caption font size */
}

.my-day-picker .rdp-day {
  @apply w-6 h-6 leading-6;
  /* Adjust day cell size */
}

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 20 14.3% 4.1%;
    --card: 0 0% 100%;
    --card-foreground: 20 14.3% 4.1%;
    --popover: 0 0% 100%;
    --popover-foreground: 20 14.3% 4.1%;
    --primary: 24 9.8% 10%;
    --primary-foreground: 60 9.1% 97.8%;
    --secondary: 60 4.8% 95.9%;
    --secondary-foreground: 24 9.8% 10%;
    --muted: 60 4.8% 95.9%;
    --muted-foreground: 25 5.3% 44.7%;
    --accent: 60 4.8% 95.9%;
    --accent-foreground: 24 9.8% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 60 9.1% 97.8%;
    --border: 20 5.9% 90%;
    --input: 20 5.9% 90%;
    --ring: 20 14.3% 4.1%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0.5rem;
  }
  .dark {
    --background: 20 14.3% 4.1%;
    --foreground: 60 9.1% 97.8%;
    --card: 20 14.3% 4.1%;
    --card-foreground: 60 9.1% 97.8%;
    --popover: 20 14.3% 4.1%;
    --popover-foreground: 60 9.1% 97.8%;
    --primary: 60 9.1% 97.8%;
    --primary-foreground: 24 9.8% 10%;
    --secondary: 60 2% 22%;
    --secondary-foreground: 60 9.1% 97.8%;
    --muted: 12 6.5% 15.1%;
    --muted-foreground: 24 5.4% 63.9%;
    --accent: 12 6.5% 15.1%;
    --accent-foreground: 60 9.1% 97.8%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 60 9.1% 97.8%;
    --border: 12 6.5% 15.1%;
    --input: 12 6.5% 15.1%;
    --ring: 24 5.7% 82.9%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}